<script lang="ts" setup>
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";

onLaunch(() => {
  uni
    .request({
      url: "/static/config.js?t=" + new Date().getTime(),
    })
    .then((res: any) => {
      let SERVER = eval(res.data);
      uni.setStorageSync("BASE_URL", SERVER.BASE_URL);
    })
    .catch((err) => {
      console.log(err);
    });
});

onShow(() => {});

onHide(() => {});
</script>
<style>
@import "@/static/iconfont.css";
</style>
<style lang="scss">
@import "@/uni_modules/uni-scss/index.scss";

/* #ifndef APP-NVUE */
page {
  background-color: #f5f5f5;
  background: linear-gradient(to bottom, #fff9f9, #fafafa);
}

uni-page-body {
  height: 100%;
}
.ldBg {
	background: linear-gradient(to bottom, #fff9f9, #fafafa);
}

/* #endif */
.uni-tabbar {
  .uni-tabbar__item {
    .uni-tabbar__icon {
      // tabBar 图标样式
      width: 60rpx !important;
      height: 60rpx !important;
    }

    .uni-tabbar__label {
      // tabBar 文字样式
      // color:yellow !important
    }
  }
}
</style>